module.exports = {
    devServer: {
        open: true,
        port: 8000,
        proxy: {
            '/api': {
                /* 目标代理服务器地址 */
                target: 'http://localhost:3000/',
                /* 允许跨域 */
                changeOrigin: true,
                /* 路径重写 */
                pathRewrite: {
                    '^/api': ''
                }
            },
        },
    }
}